<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="resources/css/style.css" type="text/css"/>

<style type="text/css">
#userDetailT1, #userReportT {
	border: 1px solid #555555;
	text-align: center;
}
#userDetailT1 td, #userReportT td {
	border: 1px solid #dddddd;
}
#userReportT tr:first-child td {
	width: 25%;
}
#myGgongRadioT td {
	width: 33.3%;
}
.sideTitle {
	font-size: 16pt;
	color: #999999;
	background: #eeeeee;
}
</style>

<script src="resources/js/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(function() {
	$("td.sideTitle").attr("rowspan", "100%");
	$("input[name=myGgongR]").attr("onclick", "getMyGgong(1)");
	getMyGgong(1);
});

function getMyGgong(num) {
	var id = $("#id").val();
	var page = num;
	var type = $("input[name=myGgongR]:checked").val();
	
	$.ajax({
		url: "userSearch_detailGgong.ga",
		type: "post",
		dataType: "html",
		data: {
			id: id,
			page: page,
			type: type
		},
		success: function(data) {
			$("#myGgongList_result").html(data);
		},
		error: function() {
			alert("오류");
		}
	});
}

</script>

<title>꽁알 : Administrator</title>

</head>
<body>

<h2 style="color:#666666;">회원 정보 - ID : ${user.id }</h2>
<br/>

<table id="userReportT" cellpadding="7" cellspacing="0" width="100%">
	<tr class="table_title">
		<td>누적 접속량</td>
		<td>현재 꽁</td>
		<td>꽁 적립</td>
		<td>꽁 소진</td>
	</tr>
	<tr>
		<td></td>
		<td>${user.ggong }</td>
		<td></td>
		<td></td>
	</tr>
</table>

<br/>

<input type="hidden" id="id" value="${user.id }"/>

<table id="userDetailT1" cellpadding="7" cellspacing="0" width="100%">
	<tr>
		<td class="sideTitle">회<br/>원<br/>정<br/>보</td>
		<td>회원가입일</td>
		<td>${user.regdate }</td>
		
		<td>핸드폰 기종</td>
		<td>${user.pname }</td>
	</tr>
	<tr>
		<td>전화번호</td>
		<td>${user.pnum }</td>
		
		<td>추천인 ID</td>
		<td>${user.recommend }</td>
	</tr>
	<tr>
		<td>E-Mail</td>
		<td>${user.email }</td>
		
		<td>성별</td>
		<td>${user.sex }</td>
	</tr>
	<tr>
		<td>생년월일</td>
		<td>${user.birth_y }-${user.birth_m }-${user.birth_d }</td>
		
		<td>결혼유무</td>
		<td>${user.marry }</td>
	</tr>
	<tr>
		<td>꽁</td>
		<td>${user.ggong }</td>
		
		<td>꽁돈</td>
		<td>${user.ggongdon }</td>
	</tr>
	<tr>
		<td>집주소</td>
		<td>${user.address_1 } ${user.address_2 }</td>
		
		<td>우편번호</td>
		<td>${user.zip }</td>
	</tr>
</table>
<br/><br/>

<h4>■ 꽁 내역</h4>
<table id="myGgongRadioT" style="width:40%">
	<tr>
		<td><input type="radio" name="myGgongR" value="0" checked/> 전체</td>
		<td><input type="radio" name="myGgongR" value="1"/> 꽁 적립</td>
		<td><input type="radio" name="myGgongR" value="2"/> 꽁 소진</td>
	</tr>
</table>
<br/>

<div id="myGgongList_result"></div>
<br/><br/>

<div style="width:100%;text-align:center;">
	<input type="button" value="회원정보변경" onclick="location.href='userSearch_modifyForm.ga?id=${user.id}'" style="width:100px;height:30px;"/>
	<input type="button" value="닫기" onclick="self.close();" style="width:100px;height:30px;"/>
</div>

</body>
</html>